import { default as router } from '@jsjn/micro-core-router'
import { addParentBaseRoute } from '@jsjn/micro-core-router/utils'
import blurryRoutes from './common/blurry'
import exposesRoutes from './common/exposes'

/**
 * 动态添加本地的公用路由模块
 */
const localCommonRouters = addParentBaseRoute([...blurryRoutes, ...exposesRoutes])

localCommonRouters.forEach((routeItem) => {
    router.addRoute(routeItem)
})

export default router
